package com.bocai.grainshop.product.feign;

import com.bocai.common.to.es.SkuEsModel;
import com.bocai.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient("grainshop-sreach")
public interface SreachFeignService {
    @PostMapping("/sreach/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
